<?php
$host = "localhost";
$user = "root";
$passwd = '';
$db = "BBM";
$conn = mysql_connect($host,$user,$pass) or die ("Unable Conn Fuck!");

//mysql_query("set names 'utf8_unicode_ci'");
mysql_select_db($db) or die ("Unable select DB Fuck you all especially $user");

$query = "SELECT * FROM staff";
$res = mysql_query($query) or die ("ERROR IN Query : $query.".mysql_error() );

if( mysql_num_rows($res) > 0 )
{
	echo "<table cellpadding=50 border=1>";
	while( $row = mysql_fetch_row($res) )
	{
		echo "<tr>";
		echo "<td>".$row[0]."</td>";
		echo "<td>".$row[1]."</td>";	
		echo "<td>".$row[2]."</td>";
		echo "<td>".$row[3]."</td>";
		echo "<tr>";
	}
	echo "</table>";
}
else 
{
	echo "记录未找到！";
}

mysql_free_result($res);
mysql_close($conn);

?>